/* MyApp.java
 * This class holds global state variables
 * Concept for class from variety of sources (e.g. 
 * http://stackoverflow.com/questions/708012/android-how-to-declare-global-variables, 
 * http://orangic.com/android/android-global-variables-and-saving-application-state/)
 */
package com.tagit;

import java.util.ArrayList;

import android.app.Application;
import com.tagit.PhotoCursorAdapter;

public class MyApp extends Application {
	
	private static int selectState; //State of select mode or not
	private static PhotoCursorAdapter mCursorAdapter; //Current PhotoCursorAdaptor
	private PhotosDbAdapter mPhotoDb; //Current PhotosDbAdapter
	

	public static int getSelectState(){
		return selectState;
	}
	
	public static void setState(int s){
		selectState=s;
	}
	
	public static PhotoCursorAdapter getAdapter(){
		return mCursorAdapter;
	}
	
	public static void setAdapter(PhotoCursorAdapter p){
		mCursorAdapter = p;
	}
	
}
